<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.List" %>
<%@ page import="sample.WaveletRecord" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
  List<WaveletRecord> waveletRecords = (List<WaveletRecord>) request.getAttribute("waveletRecords");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>List of Wavelets</title>
</head>
<body>
<%
  for(WaveletRecord waveletRecord : waveletRecords) {
%>
  <div><%=waveletRecord.getTitle()%></div>
  <div style="font-size:10px">  
    <%=waveletRecord.getNumParticipants()%> Participants 
    <a href="view?waveId=<%=waveletRecord.getWaveIdEncoded()%>">View</a> 
    <a href="viewWaveEmbed.jsp?waveId=<%=waveletRecord.getWaveIdEncoded()%>">Join</a>
  </div>
<%} %>
</body>
</html>